/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package meg.ejb.impl;

import javax.ejb.Stateless;
import meg.ejb.inter.DigestUtil;
import org.apache.commons.codec.digest.DigestUtils;

/**
 *
 * @author radek
 */
@Stateless
public class DigestUtilBean implements DigestUtil {

    @Override
    public String getPasswordDigest(String textToDigest) {
        return DigestUtils.sha512Hex(textToDigest);
    }

}
